import type { Field } from '@/api/modules/data/field';
import type { Rule } from 'ant-design-vue/es/form';

const formObj: Field = {
  fieldId: '',
  fieldName: '',
  status: '',
  isDel: '',
  fieldType: '0',
};
export const form = ref<Field>({
  ...formObj,
});

export const formRef = ref();

export const resetForm = () => {
  form.value = {
    ...formObj,
  };
};
export const formRules: Record<string, Rule[]> = {};
